// 练习2：使用fp.flowRight()、fp.prop()和fp.first()获取第一个car的name

const fp = require('lodash/fp')
const cars = require('./cars.json')  


let isFirstName = fp.flowRight(fp.prop('name'), fp.first)
console.log(isFirstName(cars))